package com.other.config;

import com.study.stater.service.MyService;
import jakarta.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;

/**
 * @author xl-9527
 * @since 2025/7/20
 **/
@Configuration(proxyBeanMethods = false)
public class TestConfig {

    private final MyService myService;

    private static final Logger log = LoggerFactory.getLogger(TestConfig.class);

    public TestConfig(final MyService myService) {
        this.myService = myService;
    }

    @PostConstruct
    public void test() {
        log.info("TestConfig init");
        log.info("{}", myService.getSystemInfo());
    }
}
